#ifndef __ERRORCODE_DESCRIPTION_VIEW__
#define __ERRORCODE_DESCRIPTION_VIEW__

#include <QWidget>
#include <QSplitter>
#include <QSpacerItem>
#include <QTextEdit>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>

#include "errorcode.h"

class ErrorCodeDescriptionView : public QWidget
{
    Q_OBJECT
public:
    explicit ErrorCodeDescriptionView(QWidget *parent = 0, bool = true);

    void setErrorCode(Errorcode);

protected:
    virtual void createView(bool = true);


signals:

public slots:
  virtual void doneButtonClicked(void);


protected:
  QVBoxLayout      *verticalLayout;
  QHBoxLayout      *hl_header_description;
  QLabel           *Module_Label;
  QSpacerItem      *hs_module_modulename;
  QLabel           *ModuleName_Label;
  QSpacerItem      *hs_modulename_errorcode;
  QLabel           *ErrorCodeLabel;
  QSpacerItem      *hs_errorcodename_2_id;
  QLabel           *ErrorCodeIDLabel;
  QSpacerItem      *header_shortdescription;
  QLabel           *ShortDescriptionLabel;
  QSpacerItem      *vs_module_shortdescription;
  QTextEdit        *ShortDescriptionEdit;
  QSpacerItem      *hs_ShortDescFullDescr;
  QLabel           *FullDescriptionLabel;
  QSpacerItem      *vs_shortdescr_fulldescr;
  QTextEdit        *FullDescriptionEdit;
  QPushButton      *doneButton;

  bool              isEditView;

};



#endif //__ERRORCODE_DESCRIPTION_VIEW__
